package com.ilxqx.test;

import org.springframework.http.HttpMethod;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Venus
 * @since 1.0.0
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/test")
    public Object test(HttpMethod method) {
        return method.name();

    }
}
